#ifndef QRWIDGET_HPP
#define QRWIDGET_HPP

#include <QWidget>

namespace  Widget
{
class QRWidgetPrivate;
class QRWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QRWidget(QWidget *parent = 0);
    ~QRWidget();

    void setText(const QString& text);
    QString text() const;

protected:
    QSize sizeHint() const;
    void paintEvent(QPaintEvent *);

private:
    QRWidgetPrivate* d_ptr;
    Q_DISABLE_COPY(QRWidget)
};

} // namespace widget
#endif // QRWIDGET_HPP
